/*
 * @Author       : sx
 * @Date         : 2021-10-20 15:56:22
 * @LastEditors  : sx
 * @LastEditTime : 2021-10-20 16:15:31
 * @FilePath     : \React-PC-Module\src\services\user.ts
 * @Description  :
 */
import { request } from 'umi';

export async function query() {
  return request<API.CurrentUser[]>('/api/users');
}

export async function queryCurrent() {
  return request('/loginManage/getCurrentUser', {
    method: 'GET',
  });
}

export async function queryNotices(): Promise<any> {
  return request<{ data: API.NoticeIconData[] }>('/api/notices');
}

